package com.wcy.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.wcy.annotation.pageVo.PageColumn;
import com.wcy.annotation.pageVo.PageName;
import com.wcy.annotation.pageVo.SelectionAnnotation;
import lombok.*;
import lombok.experimental.Accessors;
/**
 * <p>
 * 
 * </p>
 *
 * @author 吴传亿
 * @since 2025-04-29
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("role_permission")
@PageName(name = "角色权限")
public class RolePermission {

    @PageColumn(prop = "roleId", label = "角色ID",type="select",selectRef = @SelectionAnnotation(apiUrl = "role/list",mapProp = "roleId",mapLabel = "roleName"))
    private Integer roleId;

    @PageColumn(prop = "permissionId", label = "权限ID",type="select",selectRef = @SelectionAnnotation(apiUrl = "permission/list",mapProp = "permissionId",mapLabel = "permissionName"))
    private Integer permissionId;
}
